package quantum.error.correcting.code.finalone;

import java.util.Comparator;

/**
 * @author sunkai
 * @version 09-03-27
 * 
 */
public class CodeComparator implements Comparator<Code> {
	/*
	 * (non-Javadoc)
	 * 
	 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
	 */
	public int compare(Code a, Code b) {
		return a.getSeriesStr().compareTo(b.getSeriesStr());
	}
}